#ifndef COMMON_H
#define COMMON_H

#include <QPoint>
#include <QPainter>

#define ORGANIZATION "Cab"
#define APP_NAME "Qute-AI"

QPoint DPtoLP(const QPainter & painter, const QPoint & p);
QPoint DPtoLP(const QRect & w, const QRect & v, const QPoint & p);
QString readFile(const QString &fileName);
QString js_beautify(QString source);

class MainWindow;
extern MainWindow * g_pMainWindow;

void aiLog(QString strLog);

#endif // COMMON_H
